package com.cf.auth;

import com.cf.auth.model.service.AuthItemService;
import com.cf.auth.model.service.AuthService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * boot-awm-SpiderAuthConfig
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/11 上午 11:12
 */
@Slf4j
@Configuration
@EnableConfigurationProperties(SpiderAuthProperty.class)
public class SpiderAuthConfig  {

    @Bean
    public AuthService authService() {
        log.info("实例化AuthService");
        return new AuthService();
    }

    @Bean
    public AuthItemService authItemService() {
        log.info("实例化AuthItemService");
        return new AuthItemService();
    }


}
